import request from '@/utils/request'

// 查询就业管理列表
export function listStudentemployment(query) {
  return request({
    url: '/studentemployment/studentemployment/list',
    method: 'get',
    params: query
  })
}

// 查询就业管理详细
export function getStudentemployment(sid) {
  return request({
    url: '/studentemployment/studentemployment/' + sid,
    method: 'get'
  })
}

// 新增就业管理
export function addStudentemployment(data) {
  return request({
    url: '/studentemployment/studentemployment',
    method: 'post',
    data: data
  })
}

// 修改就业管理
export function updateStudentemployment(data) {
  return request({
    url: '/studentemployment/studentemployment',
    method: 'put',
    data: data
  })
}

//统计已就业人数
export function getStudentEmpTotal(){
  return request({
    url:'studentemployment/studentemployment/getStudentEmpTotal',
    method:'get',
  })
}

//统计未就业人数
export function getStudentEmpUnTotal(){
  return request({
    url:'studentemployment/studentemployment/getStudentEmpUnTotal',
    method:'get',
  })
}

//统计毕业人数
export function getFinishCollegeStuTotal(){
  return request({
    url:'studentemployment/studentemployment/getFinishCollegeStuTotal',
    method:'get',
  })
}

//统计各个城市就业人数
export function getStuEmpCityTotal(){
  return request({
    url:'studentemployment/studentemployment/getStuEmpCityTotal',
    method:'get',
  })
}

//统计不同专业就业平均薪资
export function getSpeciAvgMoney(){
  return request({
    url:'studentemployment/studentemployment/getSpeciAvgMoney',
    method:'get',
  })
}

//统计不同专业就业人数
export function getSpeciStuEmpCount(){
  return request({
    url:'studentemployment/studentemployment/getSpeciStuEmpCount',
    method:'get',
  })
}


// 删除就业管理
export function delStudentemployment(sid) {
  return request({
    url: '/studentemployment/studentemployment/' + sid,
    method: 'delete'
  })
}
